#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
void reverse(char* a)
{
	int right=strlen(a)-1;
	int left = 0;
	char tmp = 0;
	while (left < right)
	{
		tmp = *(right + a);
		*(right + a) = *(left + a);
		*(left + a) = tmp;
		left++;
		right--;
	}


}

int main()
{
	char a[10000] = {0};
	gets(a);
	reverse(a);
	puts(a);

}
